<?php
$name=$_GET['name'];
//echo "name is "+$name;
$name=strip_tags($name);

$phone=$_GET['phone'];
$phone=strip_tags($phone);

$email=$_GET['email'];
$email=strip_tags($email);

$msg=$_GET['message'];
$msg=strip_tags($msg);

$to="eventmantra@ymail.com" ;
$from=$email;
$from= strip_tags($from);
$subject = "Business Enquiry from website." ;

$message ="<table width='491' border='1' cellspacing='2' cellpadding='2'>".
  "<tr bgcolor='#eeffee'>".
    "<td width='111'>Name</td>".
    "<td width='419'>". "$name"."</td>".
 " </tr>".
  "<tr bgcolor='#eeffee'>".
    "<td width='111'>Contact Number</td>".
    "<td width='419'>". "$phone"."</td>".
 " </tr>".
 
  "<tr bgcolor='#eeeeff'>".
    "<td>Email</td>".
    "<td>"."$email"."</td>".
  "</tr>".
  "<tr bgcolor='#eeffee'>".
    "<td>Message</td>".
    "<td>"."$msg"."</td>".
  "</tr>".
"</table>";

$headers = "From: $from\r\n";
$headers .= "Content-type: text/html\r\n";
ini_set("SMTP","eduexpo..com");
ini_set("SMTP_PORT", 25);
ini_set("sendmail_from",$to);
mail($to, $subject, $message, $headers);

?>